<?xml version="1.0" encoding="UTF-8"?>

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:p="http://primefaces.org/ui"
     template="../../Template.xhtml"
>
<ui:define name="title">Add Advertiser</ui:define>

<ui:define name="body">

<h:form>
	<p:panelGrid columns="2">
<h2>Add New Advertiser</h2>
<p:commandButton value="Back" action="ManageAdvertisers.xhtml" />
</p:panelGrid>
</h:form>
<br/><br/><br/><br/>
<h:form>

<p:messages id="messages" showDetail="true" autoUpdate="true" closable="true" />

	<p:panelGrid columns="3">
		<p:outputLabel value="First Name :"/>
		<p:inputText id="Nom" value="#{advertisersMB.annonceur.nom}" required="true" requiredMessage="First name is required" />
		<p:message for="Nom" />
		<p:outputLabel value="Last Name :"/>
		<p:inputText id="Prenom" value="#{advertisersMB.annonceur.prenom}" required="true" requiredMessage="Last name is required" />
		<p:message for="Prenom" />
		<p:outputLabel value="Address :"/>
		<p:inputText id="adresse" value="#{advertisersMB.annonceur.adresse}" required="true" requiredMessage="Adresse is required" />
		<p:message for="adresse" />
		<p:outputLabel value="phone number :"/>
		<p:inputText id="Telephone" value="#{advertisersMB.annonceur.telephone}" required="true" requiredMessage="Phone number is required" />
		<p:message for="Telephone" />
		<p:outputLabel value="Fax :"/>
		<p:inputText id="Fax" value="#{advertisersMB.annonceur.fax}" required="true" requiredMessage="Fax is required" />
		<p:message for="Fax" />
		<p:outputLabel value="Status :" />
		<p:selectOneMenu value="#{advertisersMB.annonceur.statut}" >
			<f:selectItem  itemValue="true" itemLabel="Active"  />
			<f:selectItem  itemValue="false" itemLabel="Inactive"  />
		</p:selectOneMenu><br/>
		<p:commandButton action="#{advertisersMB.Ajouter}" value="Add" ></p:commandButton>
	</p:panelGrid>
</h:form>
	
	
	
	
</ui:define>
</ui:composition>